package com.zb.vo;

import com.zb.entity.FieldContentVo;
import com.zb.entity.FieldVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import java.util.List;

/**
 * @Author WEN
 * @Date 2023/10/18 0018
 **/
@Data
@ApiModel("服务商自定义字段对象")
public class NetworkFieldVo extends FieldVo {
    @ApiModelProperty(value = "自定义字段ID，新增不必传，修改必传")
    private Long id;

    @ApiModelProperty(value = "是否移动端显示 false-不显示，true-是", required = true, example = "true")
    private Boolean mobileShow;

    @ApiModelProperty(value = "是否列表条件：0-否，1-是", hidden = true)
    private Boolean listSelect;

    @ApiModelProperty(value = "是否列表显示:0-否，1-是", hidden = true)
    private Boolean listShow;

    @Valid
    @ApiModelProperty(value = "单选/多选内容")
    private List<FieldContentVo> contents;

    @ApiModelProperty(value = "删除的单选/多选内容ID")
    private List<Long> delContentIds;

}
